// 开发环境接口配置
// JAVA Boot版本对应后端接口地址
// JAVA Cloud对应网关地址
const host = 'http://127.0.0.1'
// const host = 'http://192.168.5.4'
// const host = 'http://172.21.22.10'
// const host = 'http://172.21.22.11'
const APIURl = ''+host+':30000'

// const host = 'http://192.168.199.240'
// const APIURl = ''+host+':30000'

// const host = 'http://192.168.0.105'
// const APIURl = ''+host+':30000'

// const host = 'https://294q37529g.zicp.fun'
// const host = 'http://121.40.49.42'
// const host = 'http://lc.hztianque.com'
// const host = 'http://test.5ihuijia.com'
// const APIURl = ''+host+''
let baseURL = process.env.VUE_APP_BASE_API
if(baseURL.endsWith("/")){
  baseURL = baseURL.substring(0,baseURL.length-1)
}
debugger
let APPTITLE = process.env.VUE_APP_BASE_APPTITLE
console.log('===baseURL='+baseURL+'===')
console.log('===APPTITLE='+APPTITLE+'===')
module.exports = {
  APPTITLE:process.env.VUE_APP_BASE_APPTITLE || '业务系统',
  APIURl: APIURl,
  timeout: process.env.NODE_ENV === 'development' ? 1000000 : 1000000,
  WebSocketUrl: process.env.NODE_ENV === 'development' ? APIURl.replace('http', 'ws').replace('https', 'wss') + '/api/message/websocket' : process.env.VUE_APP_BASE_WSS,
  comUploadUrl: baseURL + '/api/file/Uploader',
  comUrl: baseURL,
  // 本地文件预览
  filePreviewServer: process.env.NODE_ENV === 'development' ? ''+host+':30090' : baseURL + '/FileServer',
  // 大屏应用前端路径
  dataV: process.env.NODE_ENV === 'development' ? ''+host+':8100/DataV' : process.baseURL + '/DataV',
  // 数据报表接口-java boot
  reportServer: process.env.NODE_ENV === 'development' ? ''+host+':30007' : baseURL + '/ReportServer',
  // 数据报表接口-java cloud
  // reportServer: process.env.NODE_ENV === 'development' ? 'http://localhost:30000' : process.env.VUE_APP_BASE_API,
  // 报表前端
  report: process.env.NODE_ENV === 'development' ? ''+host+':8200' : baseURL + '/Report'
}
